package com.comleader.ldmapdownload.util;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * @author zhanghang
 * @date 2020-09-25 11:29
 * @description
 */
@Component
@PropertySource(value = {"classpath:config/config.properties"}, encoding = "UTF-8")
public class ConfigProperties {

    @Value("${location.stayTime}")
    private int locationStayTime;  // 驻留时长表示

    @Value("${es.ip}")
    private String esIp;
    @Value("${es.port}")
    private Integer esPort;
    @Value("${es.uname}")
    private String esUname;
    @Value("${es.passwd}")
    private String esPasswd;


    public Integer getEsPort() {
        return esPort;
    }

    public void setEsPort(Integer esPort) {
        this.esPort = esPort;
    }

    public String getEsUname() {
        return esUname;
    }

    public void setEsUname(String esUname) {
        this.esUname = esUname;
    }

    public String getEsPasswd() {
        return esPasswd;
    }

    public void setEsPasswd(String esPasswd) {
        this.esPasswd = esPasswd;
    }

    public String getEsIp() {
        return esIp;
    }

    public void setEsIp(String esIp) {
        this.esIp = esIp;
    }

    public int getLocationStayTime() {
        return locationStayTime;
    }

    public void setLocationStayTime(int locationStayTime) {
        this.locationStayTime = locationStayTime;
    }
}
